package com.xiaoshuidi.cloud.module.rooms.controller.admin.estimate.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 租金估值计算
 *
 * @Author Feng
 * @date 2023/5/29
 */
@Data
@Schema(description = "租金估算请求对象")
public class RentEvaluateReq {

    @Schema(description = "列表")
    private List<Info> list;
    @NotNull(message = "基础价不能为空")
    @Schema(description = "基础价")
    private double basicPrice;

    @Data
    @Schema(description = "列表")
    public static class Info {
        /**
         * 类别
         */
        @Schema(description = "类别")
        private String category;
        /**
         * 系数占比
         */
        @Schema(description = "系数占比")
        private double factorRatio;
        /**
         * 描述
         */
        @Schema(description = "描述")
        private String disc;
        /**
         * 系数
         */
        @Schema(description = "系数")
        private double factor;
        /**
         * 备注
         */
        @Schema(description = "备注")
        private String remark;
    }
}
